package cn.fan.mqtt;

import cn.fan.mqtt.server.BootNettyServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class MqttApplication {

    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(MqttApplication.class, args);
        // 启动  1883  让netty服务在springboot 启动时一起启动
        new BootNettyServer().startup();
    }

}
